CC      = gcc 
CFLAGS	=  -Wall -D_FILE_OFFSET_BITS=64 -g
TARGET1 = kfs
TARGET2 = init
OBJS1	= kfs.o operation.o
OBJS2   = init.o
INC	=  -pthread -lfuse -lrt -ldl

all:init kfs
init:$(OBJS2)
	$(CC)   $(OBJS2) -o $(TARGET2)
kfs:$(OBJS1)
	$(CC)   $(CFLAGS) $(OBJS1) -o $(TARGET1) $(INC)
kfs.o:kfs.h 
operation.o:operation.h
init.o:kfs.h

.PHONY : all
clean_all :
	rm  -f $(TARGET1) $(TARGET2) $(OBJS1) $(OBJS2)

clean:
	rm -f $(OBJS1) $(OBJS2)









